package cn.stylefeng.guns.sys.modular.dbcontentapproval.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.dbcontentapproval.entity.DbContentapproval;
import cn.stylefeng.guns.sys.modular.dbcontentapproval.model.params.DbContentapprovalParam;
import cn.stylefeng.guns.sys.modular.dbcontentapproval.model.result.DbContentapprovalResult;
import cn.stylefeng.roses.kernel.model.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 内容审核列表  服务类
 * </p>
 *
 * @author zhaoyiheng
 * @since 2020-08-20
 */
public interface DbContentapprovalService extends IService<DbContentapproval> {

    /**
     * 新增
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
    void add(DbContentapprovalParam param);

    /**
     * 删除
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
    void delete(DbContentapprovalParam param);

    /**
     * 更新
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
    void update(DbContentapprovalParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
    DbContentapprovalResult findBySpec(DbContentapprovalParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
    List<DbContentapprovalResult> findListBySpec(DbContentapprovalParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhaoyiheng
     * @Date 2020-08-20
     */
     LayuiPageInfo findPageBySpec(DbContentapprovalParam param);

    void onApprove(DbContentapprovalParam dbContentapprovalParam);

    void onDown(DbContentapprovalParam dbContentapprovalParam);
}
